home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3650 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.lpr.carel.fi!usenet
  2. From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Unbuffered character input...
  5. Date: Tue, 30 Jan 1996 16:41:42 +0200
  6. Organization: Carelcomp Forest
  7. Message-ID: <310E2E26.596D@cmt.lpr.mail.carel.fi>
  8. References: <Pine.SGI.3.91.960129190205.27936A-100000@tahiti.cs.unm.edu>
  9. NNTP-Posting-Host: renoir.cclahti.carel.fi
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b6a (WinNT; I)
  14.  
  15. Caleb Haley wrote:
  16. > Greetings!
  17. > Just curious--is there a way to do unbuffered character input in c?
  18. > i.e.  getting just one character without waiting for a carriage return
  19. > (enter)...
  20.  
  21. Many systems include header <conio.h> with a function 'getch()' that does this. Some 
  22. systems (*nix) can use the console in raw mode to return characters. Unfortunately, 
  23. there is no standard way of doing unbuffered character input that would be portable to 
  24. any platform. :(
  25.  
  26. Later,
  27. AriL
  28. -- 
  29. All my opinions are mine and mine alone.
  30.